package com.mycompany.dto;


public class EventBookingStatusDto {
	

	Long 	eventId;
	String 	eventName;
	boolean	booked;
	
	public EventBookingStatusDto() {}
	
	public EventBookingStatusDto(Long eventId, String eventName, Boolean booked) {
		this.eventId = eventId;
		this.eventName = eventName;
		this.booked = booked;
	}
	
	public boolean isBooked() {
		return booked;
	}
	public void setBooked(boolean booked) {
		this.booked = booked;
	}

	public Long getEventId() {
		return eventId;
	}

	public void setEventId(Long eventId) {
		this.eventId = eventId;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (booked ? 1231 : 1237);
		result = prime * result
				+ ((eventName == null) ? 0 : eventName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EventBookingStatusDto other = (EventBookingStatusDto) obj;
		if (booked != other.booked)
			return false;
		if (eventName == null) {
			if (other.eventName != null)
				return false;
		} else if (!eventName.equals(other.eventName))
			return false;
		return true;
	}	
	
}
